package com.ruoyi.management.mock.ro;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 * 新增公告 入参对象
 */
@Data
public class AddNoticeParam {
    @ApiModelProperty(value = "标题", required = true)
    @NotNull(message = "标题不能为空")
    private String title;

    @ApiModelProperty(value = "平台（字典：0 驾驶员端；1 乘客端）", required = true)
    @NotNull(message = "平台不能为空")
    private String platform;

    @ApiModelProperty(value = "状态（字典：0 草稿；1 上架；2 下架）", required = true)
    @NotNull(message = "状态不能为空")
    private String status;

    @ApiModelProperty(value = "类型（字典：新闻、公告、广告）", required = true)
    @NotNull(message = "类型不能为空")
    private String type;

    @ApiModelProperty(value = "标签")
    private String category;

    @ApiModelProperty(value = "内容", required = true)
    @NotNull(message = "内容不能为空")
    private String content;

    @ApiModelProperty(value = "是否置顶（0-否，1-是）", required = true)
    @NotNull(message = "是否置顶不能为空")
    private String isTop;

    @ApiModelProperty(value = "是否热门（0-否，1-是）", required = true)
    @NotNull(message = "是否热门不能为空")
    private String isHot;

    @ApiModelProperty(value = "是否轮播图展示（0-否，1-是）", required = true)
    @NotNull(message = "是否轮播图展示不能为空")
    private String isBanner;

    @ApiModelProperty(value = "轮播图url")
    private String bannerUrl;

    @ApiModelProperty(value = "所属公司")
    private Long companyId;

    @ApiModelProperty(value = "部门")
    private Long deptId;


    @ApiModelProperty(value = "创建人")
    private Long createUser;

    /** 下架时间 */
    private String downTime;
}
